#include <xscript/xitemtype.h>

std::wstring XItemType::getStringFromType() const {
    switch (getValueType()) {
        case XItemValueType_EnumUndefined:
            return L"XItemUndefined";
        case XItemValueType_EnumString:
            return L"XItemString";
        case XItemValueType_EnumBoolean:
            return L"XItemBoolean";
        case XItemValueType_EnumInt32:
            return L"XItemInt32";
        case XItemValueType_EnumInt64:
            return L"XItemInt64";
        case XItemValueType_EnumFloat:
            return L"XItemFloat";
        case XItemValueType_EnumDouble:
            return L"XItemDouble";
        case XItemValueType_EnumList:
            return L"XItemList";
        case XItemValueType_EnumDict:
            return L"XItemDict";
        case XItemValueType_EnumMax:
            return L"XItemMax";
        default:
            return L"XItemTypeUnkhown";
    }
}
